Documentation
¶
Index ¶
- func NewAgent(gw *gateway.LLMGateway, model protocol.ModelDescriptor, instructions string, ...) *agent.Agent
- func NewStreamFn(gw *gateway.LLMGateway, settings Settings) loop.StreamFn
- func ToAgentTools(typed []TypedTool, raw []loop.AgentTool, holder *RunScopeHolder) []loop.AgentTool
- type RunScope
- type RunScopeHolder
- type Settings
- type TypedTool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAgent ¶
func NewAgent(gw *gateway.LLMGateway, model protocol.ModelDescriptor, instructions string, settings Settings, tools []loop.AgentTool) *agent.Agent
NewAgent builds a pith agent wired to the given gateway, model, and tools.
func NewStreamFn ¶
func NewStreamFn(gw *gateway.LLMGateway, settings Settings) loop.StreamFn
NewStreamFn returns a StreamFn that delegates to the gateway and merges settings.
func ToAgentTools ¶
ToAgentTools converts typed and raw tools into loop.AgentTool values.
Types ¶
type RunScopeHolder ¶
type RunScopeHolder struct {
// contains filtered or unexported fields
}
RunScopeHolder stores the active run scope for tool execution.
func NewRunScopeHolder ¶
func NewRunScopeHolder() *RunScopeHolder
NewRunScopeHolder creates a holder for per-run tool context.
func (*RunScopeHolder) Clear ¶
func (h *RunScopeHolder) Clear()
Clear removes the active run scope after a run completes.
func (*RunScopeHolder) Current ¶
func (h *RunScopeHolder) Current() *RunScope
Current returns the active run scope, or nil if none is set.
Click to show internal directories.
Click to hide internal directories.