@cadraos/sdk 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -807,8 +807,8 @@ interface ExecutionStreamController extends StreamController {
807
807
  * Input for starting an agent execution
808
808
  */
809
809
  interface StartExecutionInput {
810
- /** UUID of the agent to execute */
811
- agentId: string;
810
+ /** UUID of the agent to execute. Optional when teamId is provided. */
811
+ agentId?: string;
812
812
  /** Optional team UUID for team-based execution (routes to team's lead orchestrator) */
813
813
  teamId?: string;
814
814
  /** Optional session ID for continuing a conversation */
@@ -1112,8 +1112,11 @@ interface ChatAdapter {
1112
1112
  }
1113
1113
 
1114
1114
  interface AgentChatProps {
1115
- /** The UUID of the agent to chat with */
1116
- agentId: string;
1115
+ /**
1116
+ * The UUID of the agent to chat with.
1117
+ * Optional when teamId is provided (team execution routes to team's lead orchestrator).
1118
+ */
1119
+ agentId?: string;
1117
1120
  /** Optional team UUID for team-based execution (routes to team's lead orchestrator) */
1118
1121
  teamId?: string;
1119
1122
  /**
@@ -2769,8 +2772,11 @@ declare function useChatConfig(): ChatConfigContextValue;
2769
2772
  declare function useChatConfigOptional(): ChatConfigContextValue | null;
2770
2773
 
2771
2774
  interface UseAgentChatOptions {
2772
- /** UUID of the agent to chat with */
2773
- agentId: string;
2775
+ /**
2776
+ * UUID of the agent to chat with.
2777
+ * Optional when teamId is provided (team execution routes to team's lead orchestrator).
2778
+ */
2779
+ agentId?: string;
2774
2780
  /** Optional team UUID for team-based execution (routes to team's lead orchestrator) */
2775
2781
  teamId?: string;
2776
2782
  /**
@@ -807,8 +807,8 @@ interface ExecutionStreamController extends StreamController {
807
807
  * Input for starting an agent execution
808
808
  */
809
809
  interface StartExecutionInput {
810
- /** UUID of the agent to execute */
811
- agentId: string;
810
+ /** UUID of the agent to execute. Optional when teamId is provided. */
811
+ agentId?: string;
812
812
  /** Optional team UUID for team-based execution (routes to team's lead orchestrator) */
813
813
  teamId?: string;
814
814
  /** Optional session ID for continuing a conversation */
@@ -1112,8 +1112,11 @@ interface ChatAdapter {
1112
1112
  }
1113
1113
 
1114
1114
  interface AgentChatProps {
1115
- /** The UUID of the agent to chat with */
1116
- agentId: string;
1115
+ /**
1116
+ * The UUID of the agent to chat with.
1117
+ * Optional when teamId is provided (team execution routes to team's lead orchestrator).
1118
+ */
1119
+ agentId?: string;
1117
1120
  /** Optional team UUID for team-based execution (routes to team's lead orchestrator) */
1118
1121
  teamId?: string;
1119
1122
  /**
@@ -2769,8 +2772,11 @@ declare function useChatConfig(): ChatConfigContextValue;
2769
2772
  declare function useChatConfigOptional(): ChatConfigContextValue | null;
2770
2773
 
2771
2774
  interface UseAgentChatOptions {
2772
- /** UUID of the agent to chat with */
2773
- agentId: string;
2775
+ /**
2776
+ * UUID of the agent to chat with.
2777
+ * Optional when teamId is provided (team execution routes to team's lead orchestrator).
2778
+ */
2779
+ agentId?: string;
2774
2780
  /** Optional team UUID for team-based execution (routes to team's lead orchestrator) */
2775
2781
  teamId?: string;
2776
2782
  /**