koog-agents
Toggle table of contents
0.1.0
common
Platform filter
common
Switch theme
koog-agents
agents-core
ai.
koog.
agents.
core.
agent
AIAgent
Feature
Context
AIAgent
Base
AIAgent
Exception
AIAgent
Tool
Agent
Tool
Args
Agent
Tool
Result
as
Tool()
ai.
koog.
agents.
core.
agent.
config
AIAgent
Config
Companion
AIAgent
Config
Base
Missing
Tools
Conversion
Strategy
All
Missing
Tool
Call
Describer
JSON
ai.
koog.
agents.
core.
agent.
context
AIAgent
Context
Base
AIAgent
LLMContext
ai.
koog.
agents.
core.
agent.
entity
AIAgent
Edge
AIAgent
Node
Base
Resolved
Edge
AIAgent
State
Manager
AIAgent
Storage
AIAgent
Storage
Key
AIAgent
Strategy
AIAgent
Subgraph
create
Storage
Key()
Finish
AIAgent
Node
Base
Start
AIAgent
Node
Base
Tool
Selection
Strategy
ALL
Auto
Select
For
Task
NONE
Tools
ai.
koog.
agents.
core.
agent.
session
AIAgent
LLMRead
Session
AIAgent
LLMSession
AIAgent
LLMWrite
Session
call
Tool()
emit
Parallel
Tool
Calls()
emit
Parallel
Tool
Calls
Raw()
find
Tool()
to
Parallel
Tool
Calls()
to
Parallel
Tool
Calls
Raw()
ai.
koog.
agents.
core.
annotation
Internal
Agents
Api
ai.
koog.
agents.
core.
dsl.
builder
AIAgent
Builder
Marker
AIAgent
Edge
Builder
AIAgent
Edge
Builder
Intermediate
AIAgent
Node
Builder
AIAgent
Node
Delegate
AIAgent
Node
Delegate
Base
AIAgent
Strategy
Builder
AIAgent
Subgraph
Builder
AIAgent
Subgraph
Builder
Base
AIAgent
Subgraph
Delegate
AIAgent
Subgraph
Delegate
Base
Base
Builder
forward
To()
strategy()
ai.
koog.
agents.
core.
dsl.
extension
clear
History()
History
Compression
Strategy
Chunked
From
Last
NMessages
Whole
History
leave
Last
NMessages()
node
Do
Nothing()
node
Execute
Multiple
Tools()
node
Execute
Single
Tool()
node
Execute
Tool()
node
LLMCompress
History()
node
LLMRequest()
node
LLMRequest
Multiple()
node
LLMRequest
Streaming()
node
LLMRequest
Structured()
node
LLMSend
Message
Force
One
Tool()
node
LLMSend
Message
Only
Calling
Tools()
node
LLMSend
Multiple
Tool
Results()
node
LLMSend
Tool
Result()
node
Update
Prompt()
on
Assistant
Message()
on
Failure()
on
Is
Instance()
on
Multiple
Tool
Calls()
on
Multiple
Tool
Results()
on
Successful()
on
Tool
Call()
on
Tool
Not
Called()
on
Tool
Result()
replace
History
With
TLDR()
set
Tool
Choice()
set
Tool
Choice
Auto()
set
Tool
Choice
Named()
set
Tool
Choice
None()
set
Tool
Choice
Required()
unset
Tool
Choice()
ai.
koog.
agents.
core.
environment
AIAgent
Environment
execute
Tool()
Received
Tool
Result
result()
Safe
Tool
Result
Failure
Success
Safe
Tool
From
Callable
Result
Failure
Success
Termination
Tool
to
Result()
to
Safe
Result()
ai.
koog.
agents.
core.
exception
Agent
Engine
Exception
Agent
Not
Found
Exception
Agent
Runtime
Exception
Malformed
Message
Exception
Tool
Not
Registered
Exception
Unexpected
Message
Type
Exception
Unexpected
Server
Exception
ai.
koog.
agents.
core.
feature
agent
Feature
Message
Serializers
Module
AIAgent
Feature
AIAgent
Pipeline
Prompt
Executor
Proxy
ai.
koog.
agents.
core.
feature.
handler
After
LLMCall
Handler
After
LLMCall
With
Tools
Handler
After
Node
Handler
Agent
Context
Handler
Agent
Create
Context
Agent
Environment
Transformer
Agent
Finished
Handler
Agent
Handler
Agent
Run
Error
Handler
Agent
Start
Context
Before
Agent
Started
Handler
Before
LLMCall
Handler
Before
LLMCall
With
Tools
Handler
Before
Node
Handler
Execute
LLMHandler
Execute
Node
Handler
Execute
Tool
Handler
Strategy
Finished
Handler
Strategy
Handler
Strategy
Started
Handler
Strategy
Update
Context
Tool
Call
Failure
Handler
Tool
Call
Handler
Tool
Call
Result
Handler
Tool
Validation
Error
Handler
ai.
koog.
agents.
core.
feature.
model
AIAgent
Error
AIAgent
Finished
Event
AIAgent
Node
Execution
End
Event
AIAgent
Node
Execution
Start
Event
AIAgent
Run
Error
Event
AIAgent
Started
Event
AIAgent
Strategy
Finished
Event
AIAgent
Strategy
Start
Event
Defined
Feature
Event
LLMCall
End
Event
LLMCall
Start
Event
LLMCall
With
Tools
End
Event
LLMCall
With
Tools
Start
Event
to
Agent
Error()
Tool
Call
Event
Tool
Call
Failure
Event
Tool
Call
Result
Event
Tool
Validation
Error
Event
ai.
koog.
agents.
core.
feature.
remote.
client.
config
AIAgent
Feature
Client
Connection
Config
ai.
koog.
agents.
core.
feature.
remote.
server.
config
AIAgent
Feature
Server
Connection
Config
ai.
koog.
agents.
core.
model
Agent
Service
Error
Agent
Service
Error
Type
UNEXPECTED_
MESSAGE_
TYPE
MALFORMED_
MESSAGE
AGENT_
NOT_
FOUND
UNEXPECTED_
ERROR
ai.
koog.
agents.
core.
model.
message
Agent
Error
To
Environment
Message
Agent
Termination
To
Environment
Message
Agent
To
Environment
Message
Agent
Tool
Calls
To
Environment
Message
Agent
Tool
Call
To
Environment
Content
Agent
Tool
Call
To
Environment
Message
AIAgent
Environment
Initialize
Message
Content
AIAgent
Environment
To
Agent
Initialize
Message
AIAgent
Environment
Tool
Result
To
Agent
Content
Environment
Initialize
To
Agent
Content
Environment
Initialize
To
Agent
Message
Environment
To
Agent
Content
Environment
To
Agent
Error
Message
Environment
To
Agent
Message
Environment
To
Agent
Termination
Content
Environment
To
Agent
Termination
Message
Environment
Tool
Result
Multiple
To
Agent
Message
Environment
Tool
Result
Single
To
Agent
Message
Environment
Tool
Result
To
Agent
Content
Environment
Tool
Result
To
Agent
Message
agents-ext
ai.
koog.
agents.
ext.
agent
chat
Agent
Strategy()
Provide
String
Subgraph
Result
Provide
Subgraph
Result
Provide
Verified
Subgraph
Result
Serializable
Subgraph
Result
simple
Single
Run
Agent()
single
Run
Strategy()
String
Subgraph
Result
Subgraph
Result
subgraph
With
Task()
subgraph
With
Verification()
Verified
Subgraph
Result
ai.
koog.
agents.
ext.
tool
Ask
User
Args
Exit
Tool
Args
Say
To
User
Args
agents-features-common
ai.
koog.
agents.
local.
features.
common.
config
Feature
Config
ai.
koog.
agents.
local.
features.
common.
message
Feature
Event
Feature
Event
Message
Feature
Message
Type
Message
Event
Feature
Message
Processor
Feature
Message
Processor
Util
Feature
String
Message
ai.
koog.
agents.
local.
features.
common.
remote
Connection
Config
ai.
koog.
agents.
local.
features.
common.
remote.
client
Feature
Message
Client
Feature
Message
Remote
Client
ai.
koog.
agents.
local.
features.
common.
remote.
client.
config
Client
Connection
Config
Default
Client
Connection
Config
ai.
koog.
agents.
local.
features.
common.
remote.
server
Feature
Message
Remote
Server
Feature
Message
Server
ai.
koog.
agents.
local.
features.
common.
remote.
server.
config
Default
Server
Connection
Config
Server
Connection
Config
ai.
koog.
agents.
local.
features.
common.
writer
Feature
Message
File
Writer
Feature
Message
Log
Writer
Log
Level
INFO
DEBUG
Feature
Message
Remote
Writer
agents-features-event-handler
ai.
koog.
agents.
local.
features.
event
Handler.
feature
Event
Handler
Feature
Event
Handler
Config
handle
Events()
agents-features-memory
ai.
koog.
agents.
local.
memory.
config
Memory
Scopes
Profile
Memory
Scope
Type
PRODUCT
AGENT
FEATURE
ORGANIZATION
ai.
koog.
agents.
local.
memory.
feature
Agent
Memory
Config
Feature
memory()
with
Memory()
ai.
koog.
agents.
local.
memory.
feature.
history
Retrieve
Facts
From
History
ai.
koog.
agents.
local.
memory.
feature.
nodes
node
Load
All
Facts
From
Memory()
node
Load
From
Memory()
node
Save
To
Memory()
node
Save
To
Memory
Auto
Detect
Facts()
ai.
koog.
agents.
local.
memory.
model
Concept
Default
Time
Provider
Fact
Fact
Type
SINGLE
MULTIPLE
Memory
Scope
Agent
Cross
Product
Feature
Product
Memory
Subject
Everything
Multiple
Facts
Single
Fact
Time
Provider
ai.
koog.
agents.
local.
memory.
providers
Agent
Memory
Provider
File
Metadata
File
Content
Text
Binary
Inapplicable
File
Type
File
Directory
File
System
Provider
Read
Read
Only
Read
Write
Select
Serialization
Write
JVMFile
System
Provider
Read
Read
Only
Read
Write
Select
Serialization
Write
Local
File
Memory
Provider
Local
Memory
Config
Memory
Provider
Config
No
Memory
ai.
koog.
agents.
local.
memory.
storage
Aes256GCMEncryptor
Companion
Encrypted
Storage
Encryption
Simple
Storage
Storage
agents-features-trace
ai.
koog.
agents.
local.
features.
tracing.
feature
Trace
Feature
Config
Tracing
Feature
ai.
koog.
agents.
local.
features.
tracing.
writer
Trace
Feature
Message
File
Writer
Trace
Feature
Message
Log
Writer
Trace
Feature
Message
Remote
Writer
agents-mcp
ai.
koog.
agents.
mcp
Default
Mcp
Tool
Descriptor
Parser
Mcp
Tool
Args
Args
Serializer
Result
Mcp
Tool
Descriptor
Parser
Mcp
Tool
Registry
Provider
agents-test
ai.
koog.
agents.
testing.
feature
AIAgent
Context
Mock
Builder
Proxy
Handler
AIAgent
Context
Mock
Builder
Base
Assertion
Result
False
Not
Equal
Dummy
Agent
Context
Edge
Assertion
graph()
Graph
Assertions
Node
Output
Assertion
Node
Reference
Finish
Named
Node
Start
Strategy
Subgraph
Node
Reachability
Assertion
Sub
Graph
Assertions
test
Graph()
Testing
Config
Subgraph
Assertions
Builder
Edge
Assertions
Builder
Edge
Output
Pair
Node
Output
Assertions
Builder
Node
Output
Pair
Feature
tool
Call
Message()
tool
Call
Signature()
tool
Result()
Unconditional
Edge
Assertion
with
Testing()
ai.
koog.
agents.
testing.
tools
Default
Response
Receiver
Dummy
Tool
Args
get
Mock
Executor()
mock
LLMAnswer()
Mock
LLMBuilder
Mock
Tool
Receiver
Mock
Tool
Response
Builder
Tool
Call
Receiver
mock
LLMTool
Call()
mock
Tool()
Mock
Tool
From
Callable
Receiver
Mock
Tool
From
Callable
Response
Builder
Tool
Condition
agents-tools
ai.
koog.
agents.
core.
tools
fail()
Simple
Tool
Tool
Args
Empty
Args
Tool
Descriptor
Tool
Exception
Validation
Failure
Tool
Parameter
Descriptor
Tool
Parameter
Type
Boolean
Companion
Enum
Float
Integer
List
Object
String
Tool
Registry
Builder
Companion
Tool
Result
Boolean
Companion
JSONSerializable
Number
Text
Companion
validate()
validate
Not
Null()
ai.
koog.
agents.
core.
tools.
annotations
Internal
Agent
Tools
Api
LLMDescription
Tool
ai.
koog.
agents.
core.
tools.
reflect
as
Tool()
as
Tool
Descriptor()
as
Tools()
as
Tools
By
Interface()
as
Tool
Type()
tool()
Tool
From
Callable
Result
Var
Args
Var
Args
Serializer
Tool
Set
ai.
koog.
agents.
core.
tools.
serialization
serialize
Tool
Descriptors
To
Json
String()
Tool
Result
String
Serializer
agents-utils
ai.
koog.
agents.
utils
Closeable
Suitable
For
IO
use()
embeddings-base
ai.
koog.
embeddings.
base
Embedder
Vector
embeddings-llm
ai.
koog.
embeddings.
local
LLMEmbedder
Ollama
Embedding
Models
prompt-cache-files
ai.
koog.
prompt.
cache.
files
File
Prompt
Cache
Factory
prompt-cache-model
ai.
koog.
prompt.
cache.
memory
In
Memory
Prompt
Cache
Companion
ai.
koog.
prompt.
cache.
model
Prompt
Cache
Factory
Aggregated
Named
prompt-cache-redis
ai.
koog.
prompt.
cache.
redis
Redis
Cache
Exception
Redis
Prompt
Cache
Companion
prompt-executor-cached
ai.
koog.
prompt.
executor.
cached
Cached
Prompt
Executor
prompt-executor-anthropic-client
ai.
koog.
prompt.
executor.
clients.
anthropic
Anthropic
Client
Settings
Anthropic
LLMClient
Anthropic
Models
prompt-executor-google-client
ai.
koog.
prompt.
executor.
clients.
google
Google
Client
Settings
Google
LLMClient
Google
Models
prompt-executor-ollama-client
ai.
koog.
prompt.
executor.
ollama.
client
Ollama
Client
Ollama
Custom
Model
Converters
ai.
koog.
prompt.
executor.
ollama.
client.
dto
Embedding
Request
Embedding
Response
Ollama
Chat
Message
DTO
Ollama
Chat
Request
DTO
Options
Ollama
Chat
Response
DTO
Ollama
Tool
Call
DTO
Call
Ollama
Tool
DTO
Definition
ai.
koog.
prompt.
executor.
ollama.
tools.
json
to
JSONSchema()
prompt-executor-openai-client
ai.
koog.
prompt.
executor.
clients.
openai
Open
AIClient
Settings
Open
AILLMClient
Open
AIModels
Chat
Cost
Optimized
Embeddings
Reasoning
prompt-executor-openrouter-client
ai.
koog.
prompt.
executor.
clients.
openrouter
Open
Router
Client
Settings
Open
Router
LLMClient
Open
Router
Models
prompt-executor-llms
ai.
koog.
prompt.
executor.
llms
Multi
LLMPrompt
Executor
Fallback
Prompt
Executor
Settings
Single
LLMPrompt
Executor
prompt-executor-llms-all
ai.
koog.
prompt.
executor.
llms.
all
Default
Multi
LLMPrompt
Executor
simple
Anthropic
Executor()
simple
Google
AIExecutor()
simple
Ollama
AIExecutor()
simple
Open
AIExecutor()
simple
Open
Router
Executor()
prompt-executor-model
ai.
koog.
prompt.
executor.
model
Prompt
Executor
prompt-llm
ai.
koog.
prompt.
llm
LLMCapability
Completion
Embed
Schema
JSON
Full
Simple
Speculation
Temperature
Tool
Choice
Tools
Vision
LLModel
LLMProvider
Alibaba
Anthropic
Google
Meta
Open
AI
Open
Router
Ollama
Models
Alibaba
Meta
prompt-markdown
ai.
koog.
prompt.
markdown
markdown()
Markdown
Content
Builder
Line
Context
List
Context
Table
Alignment
LEFT
CENTER
RIGHT
prompt-model
ai.
koog.
prompt.
dsl
Prompt
Companion
LLMParams
Update
Context
prompt()
Prompt
Builder
Tool
Message
Builder
Prompt
DSL
ai.
koog.
prompt.
message
Message
Assistant
Request
Response
Role
System
User
Assistant
Tool
System
Tool
Call
Result
User
ai.
koog.
prompt.
params
LLMParams
Schema
JSON
Full
Simple
Tool
Choice
Auto
Named
None
Required
ai.
koog.
prompt.
text
numbered()
text()
Text
Content
Builder
Caret
prompt-structure
ai.
koog.
prompt.
structure
Description
Metadata
execute
Structured()
execute
Structured
One
Shot()
LLMStructured
Parsing
Error
structure()
Structured
Data
Structured
Data
Definition
Structured
Output
Prompts
Structured
Response
Structure
Parser
ai.
koog.
prompt.
structure.
json
Json
Schema
Generator
Schema
Format
Simple
Json
Schema
Json
Structured
Data
Companion
Json
Schema
Type
FULL
SIMPLE
Json
Structure
Language
Companion
ai.
koog.
prompt.
structure.
markdown
markdown
Parser()
Markdown
Parser
Builder
Markdown
Streaming
Parser
markdown
Streaming
Parser()
Markdown
Structured
Data
Definition
prompt-xml
ai.
koog.
prompt.
xml
xml()
Xml
Content
Builder
prompt-executor-google-client
/
ai.koog.prompt.executor.clients.google
/
GoogleModels
/
Gemini1_5Pro001
Gemini1_
5Pro001
val
Gemini1_5Pro001
:
LLModel
(
source
)
Specific version of Gemini 1.5 Pro