StaticCapability

class StaticCapability(val instructions: String? = null, tools: List<AgentTool> = emptyList()) : Capability(source)

A capability made of fixed tools and instructions.

Constructors

Link copied to clipboard
constructor(instructions: String? = null, tools: List<AgentTool> = emptyList())

Properties

Link copied to clipboard
open override val instructions: String?

Guidance for the model, or null.

Functions

Link copied to clipboard
open suspend fun context(): String?

Per-turn context read when a turn starts (e.g. a memory snapshot), placed after the static instructions. It may change between turns, so keep it small and at the end.

Link copied to clipboard
open suspend override fun tools(): List<AgentTool>

Tools the capability contributes.