useInput(): AgentInput | the current turn’s input (source, text, payload, live, sessionId, turn, alias) |
useModel(id, options?) | select the model for the next step; never calls it |
useTool(tool) | declare a tool for the next step |
useMcpServer(ref) | declare an MCP server |
useSubagent(id) | declare a child agent the model may delegate to |
useSessionData(): Record<string, unknown> | synchronous snapshot of durable session data taken before render |
useSecret(name): SecretRef | opaque, write-only secret reference |
bearer(ref): HeaderValue | bearer-auth header value from a secret ref |