Skip to content

Commit

Permalink
feat(api): api update (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 4, 2024
1 parent e0929eb commit d3884d4
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 50
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-095d6bc09a92bb5642dbd3901d9bf2394fb50d31b75246b76150e47a8bb23e56.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-e7223bbf611296aa0eb0571a50c53f395cebd27ac2206db235b0b88c0b42a037.yml
10 changes: 9 additions & 1 deletion src/resources/agents/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,15 @@ export class Docs extends APIResource {
}

/**
* Search Agent Docs
* Searches for documents associated with a specific agent.
*
* Parameters: x_developer_id (UUID): The unique identifier of the developer
* associated with the agent. search_params (TextOnlyDocSearchRequest |
* VectorDocSearchRequest | HybridDocSearchRequest): The parameters for the search.
* agent_id (UUID): The unique identifier of the agent associated with the
* documents.
*
* Returns: DocSearchResponse: The search results.
*/
search(
agentId: string,
Expand Down
10 changes: 9 additions & 1 deletion src/resources/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,15 @@ export class Sessions extends APIResource {
}

/**
* Chat
* Initiates a chat session.
*
* Parameters: developer (Developer): The developer associated with the chat
* session. session_id (UUID): The unique identifier of the chat session.
* chat_input (ChatInput): The chat input data. background_tasks (BackgroundTasks):
* The background tasks to run. x_custom_api_key (Optional[str]): The custom API
* key.
*
* Returns: ChatResponse: The chat response.
*/
chat(
sessionId: string,
Expand Down
18 changes: 16 additions & 2 deletions src/resources/users/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ import { type OffsetPaginationParams } from '../../pagination';

export class Docs extends APIResource {
/**
* Create User Doc
* Creates a new document for a user.
*
* Parameters: user_id (UUID): The unique identifier of the user associated with
* the document. data (CreateDocRequest): The data to create the document with.
* x_developer_id (UUID): The unique identifier of the developer associated with
* the document. background_tasks (BackgroundTasks): The background tasks to run.
*
* Returns: ResourceCreatedResponse: The created document.
*/
create(
userId: string,
Expand Down Expand Up @@ -52,7 +59,14 @@ export class Docs extends APIResource {
}

/**
* Search User Docs
* Searches for documents associated with a specific user.
*
* Parameters: x_developer_id (UUID): The unique identifier of the developer
* associated with the user. search_params (TextOnlyDocSearchRequest |
* VectorDocSearchRequest | HybridDocSearchRequest): The parameters for the search.
* user_id (UUID): The unique identifier of the user associated with the documents.
*
* Returns: DocSearchResponse: The search results.
*/
search(
userId: string,
Expand Down

0 comments on commit d3884d4

Please sign in to comment.