Skip to main content

Create Agent Session

POST 

/api/v1/agent_session/create/:workspace_id

Create a new agent session in the workspace.

Args

response (Response): The response object. workspace_id (str): The workspace ID where the session is created. agent_session_data (RepoCreateSchema): Data for creating the agent session. org_member: The organizational member making the request. db (AsyncSession): The database session.

Returns

AgentSessionInDBSchema: The created agent session with HTTP status of status.HTTP_201_CREATED.

Important observations

  • The workspace membership is validated before creation.

Request

Responses

Successful Response