colmugx/posoco/types does not have a README file
pub(all) struct StreamAccumulator {
text : String
reasoning : String
tool_calls : Array[ToolCallBuilder]
finish_reason : String
usage_input : Int?
usage_output : Int?
usage_total : Int?
} derive(Debug)impl Show for StreamModepub(all) enum TurnEvent {
TurnStarted
ToolCallPending(ToolCall)
ToolCallResult(call~ : ToolCall, result~ : ToolOutcome, is_error~ : Bool)
ModelResponseReceived(message~ : Message, usage~ : Usage?)
SessionRedirect(from~ : String, to~ : String, messages_before~ : Int, messages_after~ : Int)
TurnCompleted
TurnFailed(String)
ToolCallDeferred(call~ : ToolCall, reason~ : String)
StreamChunkReceived(chunk~ : StreamChunk)
ConfigWarning(field~ : String, value~ : String, reason~ : String)
ConfigChanged(field~ : String, old_value~ : String, new_value~ : String)
Custom(source~ : String, label~ : String, data~ : Json)
} derive(Eq, Debug)pub(all) struct TurnResult {
message : Message
tool_results : Array[ToolOutcome]
final_session_id : String
} derive(Eq, Debug)let PARENT_THREAD_ID_KEY : StringLLM Agent framework with hexagonal (ports-and-adapters) architecture. Defines 9 traits + Agent loop. Depends on moonbitlang/async.
Dependencies