Skip to Content
Naylence Docs are in active development. Share feedback in Discord.
ReferenceAgent APIPython ReferencePython Reference

Python Agent SDK API Reference

This section contains the auto-generated API documentation for the naylence-agent-sdk Python package.

Classes

ClassDescription
AgentAbstract base class for all agents.
AgentExceptionBase class for all agent-level errors.
AgentProxyRemote proxy for invoking agent methods over the network.
Artifact-
AuthorizationExceptionRaised when authentication or authorization fails.
BackgroundTaskAgentBase for agents that run long-running background tasks.
BaseAgentStandard implementation of the :class:Agent protocol.
BaseAgentStateBase class for agent state with Pydantic validation.
ConflictExceptionRaised when data already exists and cannot be recreated.
DataPart-
DuplicateTaskExceptionRaised when a task with the same ID has already been registered.
FilePart-
InvalidDataExceptionRaised when provided data is semantically or structurally invalid.
InvalidTaskExceptionRaised when the task payload is malformed or incomplete.
Message-
NoDataFoundExceptionRaised when requested data is not found.
PushNotificationNotSupportedException-
RateLimitExceededExceptionRaised when the agent rate-limits a request.
Task-
TaskArtifactUpdateEvent-
TaskNotCancelableException-
TaskState-
TaskStatus-
TaskStatusUpdateEvent-
TextPart-
UnsupportedOperationExceptionRaised when the agent does not support the requested operation.

Functions

FunctionDescription
first_data_part-
first_text_partSafely extract the .text field from the first Part in a list, if it’s a TextPart.
make_task-

Other

NameDescription
CLIENT_CONFIG-
NODE_CONFIG-
Part-
SENTINEL_CONFIG-
Last updated on