Authoring sessions
An authoring session provides you with a private session where Cloudera Agent Studio stores the agents, tools, and skills that you create or edit before publishing them to the catalog.
Authoring sessions
When you create or edit an agent, tool, or skill, Agent Studio works in your own authoring session. The session runs a dedicated authoring service for you. Agent Studio does not share this service with other users and runs the service only on demand. The Serving Factory operator creates the service in your own Kubernetes namespace.
Agent Studio manages your session by performing the following actions:
- When you select Edit or New, Agent Studio first checks whether your session is ready.
- If the session is ready, the action runs immediately.
- If the session is not ready or does not exist, a progress dialog opens. Agent Studio requests the session and waits until the session endpoint is available. The endpoint is different for each session.
The following table lists the session states:
| State | Description |
|---|---|
| Pending | Agent Studio is creating the session. |
| Ready | The session is available and the endpoint exists. |
| Failed | The session could not be created. |
Three actions apply to a session, and each action requires a specific permission granted by an administrator through a role.
The Admin and Builder roles include the authoring session permissions. For more information on role permissions, see User roles and capabilities.
The following table lists the error responses from the session service:
| Condition | Response |
|---|---|
| Authoring is disabled for the deployment | HTTP status 501 |
| The request uses a machine-only token with no user identity | HTTP status 400 |
| The access-control client is not configured | HTTP status 503 |
Session
You have a workspace volume that stores your drafts. When a session starts, Agent Studio creates the agents/, tools/, and skills/ directories and a starting state.json file. Agent Studio supports three artifact types in the workspace: agents, tools, and skills.
The .agentstudio/state.json file records the version state of each artifact.
Validation
Saving a draft skips validation, while saving or publishing an artifact triggers validation. If validation fails when you publish an artifact, the request fails with HTTP status 422. Some checks produce warnings that do not block publishing.
Publishing
When you publish an artifact from your workspace to the catalog, you choose either the user scope or the public scope. The default is the user scope. When you publish an artifact, Agent Studio uses the public scope if a published entry with the same name is already public. Otherwise, it uses the user scope.
To browse published artifacts, use the Catalog page in Agent Studio.
