Module
Yoga.ACP.ClaudeAgent
- Package
- purescript-yoga-acp-om
- Repository
- rowtype-yoga/purescript-yoga-acp-om
#SDKMessage Source
data SDKMessageConstructors
AssistantMessage { message :: APIMessage, session_id :: String, uuid :: String }UserMessage { message :: APIMessage, session_id :: String, uuid :: String }ResultMessage ResultMsgSystemMessage SystemMsgStreamEvent { event :: Foreign, session_id :: String, uuid :: String }UnknownMessage Foreign
Instances
#ContentBlock Source
data ContentBlockA content block from the Anthropic API. Tagged by the "type" field.
Constructors
TextBlock { text :: String }ToolUseBlock { id :: String, name :: String }ToolResultBlock { tool_use_id :: String }UnknownBlock String
Instances
#APIMessage Source
type APIMessage = { content :: Array ContentBlock, role :: String }#QueryOptions Source
type QueryOptions :: Row Typetype QueryOptions = (allowDangerouslySkipPermissions :: Boolean, allowedTools :: Array String, continue :: Boolean, cwd :: String, env :: Foreign, maxBudgetUsd :: Number, maxTurns :: Int, model :: String, pathToClaudeCodeExecutable :: String, permissionMode :: String, prompt :: String, resume :: String, systemPrompt :: String)
#query Source
query :: forall ctx err opts opts_. Union opts opts_ QueryOptions => Record opts -> Strom ctx err SDKMessage#messageText Source
messageText :: APIMessage -> StringExtract plain text from an API message's content blocks.