@artinet/sdk
Version:
TypeScript SDK for Agentic Communication
44 lines • 1.5 kB
TypeScript
import { BaseExecutionContext } from "../types/services/context.js";
import { AgentCard } from "../types/index.js";
import { ServiceDispatcher } from "../types/services/dispatcher.js";
import { Protocol } from "../types/services/protocol.js";
import { Service } from "../types/services/service.js";
import { ManagerInterface, ManagerOptions } from "../types/services/manager.js";
/**
* @description The service manager class.
*/
export declare class ServiceManager extends ServiceDispatcher implements ManagerInterface {
/**
* @description The agent card.
* @type {AgentCard}
*/
readonly card: AgentCard;
/**
* @description The constructor.
* @param {ManagerOptions} params The service manager params.
*/
constructor(params: ManagerOptions);
/**
* @description Creates a request context.
* @param {T} req The request.
* @returns {T} The request context.
*/
createRequestContext<T extends BaseExecutionContext>(req: T): T;
/**
* @description Gets the agent card.
* @returns {AgentCard} The agent card.
*/
getCard(): AgentCard;
/**
* @description Gets a service by protocol.
* @param {Protocol} protocol The protocol.
* @returns {Service} The service.
*/
getService(protocol: Protocol): Service | undefined;
/**
* @description Stops the manager.
* @returns {Promise<void>} The promise.
*/
destroy(): Promise<void>;
}
//# sourceMappingURL=manager.d.ts.map