Class: AgentOS
Defined in: packages/agentos/src/api/AgentOS.ts:764
Implements
Description
The AgentOS class is the SOTA public-facing service facade for the entire AI agent platform.
It provides a unified API for interacting with the system, managing the lifecycle of core
components, and orchestrating complex AI interactions. This class ensures that all
operations adhere to the defined architectural tenets, including robust error handling,
comprehensive documentation, and strict type safety.
Implements
IAgentOS
Constructors
Constructor
new AgentOS(
logger?):AgentOS
Defined in: packages/agentos/src/api/AgentOS.ts:796
Constructs an AgentOS instance. The instance is not operational until
initialize() is called and successfully completes.
Parameters
logger?
ILogger = ...
Returns
AgentOS
Methods
applyWorkflowTaskUpdates()
applyWorkflowTaskUpdates(
workflowId,updates):Promise<WorkflowInstance|null>
Defined in: packages/agentos/src/api/AgentOS.ts:1946
Applies task-level updates to a workflow instance.
Parameters
workflowId
string
The workflow instance ID.
updates
Array of task updates to apply.
Returns
Promise<WorkflowInstance | null>
Updated workflow instance or null if not found.
Implementation of
IAgentOS.applyWorkflowTaskUpdates
getConversationHistory()
getConversationHistory(
conversationId,userId):Promise<ConversationContext|null>
Defined in: packages/agentos/src/api/AgentOS.ts:1996
Async
Retrieves the conversation history for a specific conversation ID, subject to user authorization.
Parameters
conversationId
string
The unique identifier of the conversation to retrieve.
userId
string
The ID of the user requesting the history. Authorization checks are performed to ensure the user has access to this conversation.
Returns
Promise<ConversationContext | null>
A promise that resolves to the
ConversationContext object if found and accessible, or null otherwise.
Throws
If the service is not initialized or if a critical error
occurs during history retrieval (permission errors might result in null or specific error type).
Implementation of
IAgentOS.getConversationHistory
getConversationManager()
getConversationManager():
ConversationManager
Defined in: packages/agentos/src/api/AgentOS.ts:1509
Explicit runtime getters for devtools integrations such as AgentOS Workbench.
Returns
Implementation of
IAgentOS.getConversationManager
getExtensionManager()
getExtensionManager():
ExtensionManager
Defined in: packages/agentos/src/api/AgentOS.ts:1519
Returns
Implementation of
IAgentOS.getExtensionManager
getExternalToolRegistry()
getExternalToolRegistry():
ExternalToolRegistry|undefined
Defined in: packages/agentos/src/api/AgentOS.ts:1529
Returns
ExternalToolRegistry | undefined
Implementation of
IAgentOS.getExternalToolRegistry
getGMIManager()
getGMIManager():
GMIManager
Defined in: packages/agentos/src/api/AgentOS.ts:1514
Returns
Implementation of
IAgentOS.getGMIManager