Python Agent SDK API Reference
This section contains the auto-generated API documentation for the naylence-agent-sdk Python package.
Classes
| Class | Description |
|---|---|
| Agent | Abstract base class for all agents. |
| AgentException | Base class for all agent-level errors. |
| AgentProxy | Remote proxy for invoking agent methods over the network. |
| Artifact | - |
| AuthorizationException | Raised when authentication or authorization fails. |
| BackgroundTaskAgent | Base for agents that run long-running background tasks. |
| BaseAgent | Standard implementation of the :class:Agent protocol. |
| BaseAgentState | Base class for agent state with Pydantic validation. |
| ConflictException | Raised when data already exists and cannot be recreated. |
| DataPart | - |
| DuplicateTaskException | Raised when a task with the same ID has already been registered. |
| FilePart | - |
| InvalidDataException | Raised when provided data is semantically or structurally invalid. |
| InvalidTaskException | Raised when the task payload is malformed or incomplete. |
| Message | - |
| NoDataFoundException | Raised when requested data is not found. |
| PushNotificationNotSupportedException | - |
| RateLimitExceededException | Raised when the agent rate-limits a request. |
| Task | - |
| TaskArtifactUpdateEvent | - |
| TaskNotCancelableException | - |
| TaskState | - |
| TaskStatus | - |
| TaskStatusUpdateEvent | - |
| TextPart | - |
| UnsupportedOperationException | Raised when the agent does not support the requested operation. |
Functions
| Function | Description |
|---|---|
| first_data_part | - |
| first_text_part | Safely extract the .text field from the first Part in a list, if it’s a TextPart. |
| make_task | - |
Other
| Name | Description |
|---|---|
| CLIENT_CONFIG | - |
| NODE_CONFIG | - |
| Part | - |
| SENTINEL_CONFIG | - |
Last updated on