colmugx/posoco/types does not have a README file
pub(all) struct CompactOutcome {
final_session_id : String
mode : CompactMode
messages_after : Int
} derive(Eq)impl Show for ContextReadingSourcepub(all) struct ContextState {
session_id : String
model_id : String
context_version : Int
last_measured_tokens : Int?
estimated_added_tokens : Int
window_tokens : Int?
compact_threshold : Double
source : ContextReadingSource
reading_message_count : Int
} derive(Eq, Debug)pub(all) enum StreamChunk {
TextDelta(token~ : String)
ReasoningDelta(token~ : String)
ToolCallDelta(index~ : Int, id~ : String?, name~ : String?, arguments_delta~ : String?)
Usage(input_tokens~ : Int, output_tokens~ : Int, total_tokens~ : Int, cached_input_tokens~ : Int?, uncached_input_tokens~ : Int?)
Finish(reason~ : String)
} derive(Eq, Debug)impl Show for StreamModepub(all) struct ToolCallBuilder {
id : String
name : String
arguments_buf : StringBuilder
} derive(Debug)pub(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)
StreamChunksDropped(count~ : Int)
ConfigWarning(field~ : String, value~ : String, reason~ : String)
ConfigChanged(field~ : String, old_value~ : String, new_value~ : String)
ContextStateUpdated(state~ : ContextState)
CompactStarted(trigger~ : String)
CompactFinished(trigger~ : String, mode~ : String, final_session_id~ : String, messages_after~ : Int)
OperationFinalized(operation~ : String, outcome~ : String, detail~ : 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 : StringInstall
Download zipLLM Agent framework with hexagonal (ports-and-adapters) architecture. Defines 9 traits + Agent loop. Depends on moonbitlang/async.
Dependencies