Documentation
¶
Index ¶
- func NewCallbackContext(ctx agent.InvocationContext) agent.CallbackContext
- func NewCallbackContextWithDelta(ctx agent.InvocationContext, stateDelta map[string]any) agent.CallbackContext
- func NewInvocationContext(ctx context.Context, params InvocationContextParams) agent.InvocationContext
- func NewReadonlyContext(ctx agent.InvocationContext) agent.ReadonlyContext
- type InvocationContext
- func (c *InvocationContext) Agent() agent.Agent
- func (c *InvocationContext) Artifacts() agent.Artifacts
- func (c *InvocationContext) Branch() string
- func (c *InvocationContext) EndInvocation()
- func (c *InvocationContext) Ended() bool
- func (c *InvocationContext) InvocationID() string
- func (c *InvocationContext) Memory() agent.Memory
- func (c *InvocationContext) RunConfig() *agent.RunConfig
- func (c *InvocationContext) Session() session.Session
- func (c *InvocationContext) UserContent() *genai.Content
- type InvocationContextParams
- type ReadonlyContext
- func (c *ReadonlyContext) AgentName() string
- func (c *ReadonlyContext) AppName() string
- func (c *ReadonlyContext) Branch() string
- func (c *ReadonlyContext) InvocationID() string
- func (c *ReadonlyContext) ReadonlyState() session.ReadonlyState
- func (c *ReadonlyContext) SessionID() string
- func (c *ReadonlyContext) UserContent() *genai.Content
- func (c *ReadonlyContext) UserID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCallbackContext ¶
func NewCallbackContext(ctx agent.InvocationContext) agent.CallbackContext
func NewCallbackContextWithDelta ¶
func NewCallbackContextWithDelta(ctx agent.InvocationContext, stateDelta map[string]any) agent.CallbackContext
func NewInvocationContext ¶
func NewInvocationContext(ctx context.Context, params InvocationContextParams) agent.InvocationContext
func NewReadonlyContext ¶
func NewReadonlyContext(ctx agent.InvocationContext) agent.ReadonlyContext
Types ¶
type InvocationContext ¶
func (*InvocationContext) Agent ¶
func (c *InvocationContext) Agent() agent.Agent
func (*InvocationContext) Artifacts ¶
func (c *InvocationContext) Artifacts() agent.Artifacts
func (*InvocationContext) Branch ¶
func (c *InvocationContext) Branch() string
func (*InvocationContext) EndInvocation ¶
func (c *InvocationContext) EndInvocation()
func (*InvocationContext) Ended ¶
func (c *InvocationContext) Ended() bool
func (*InvocationContext) InvocationID ¶
func (c *InvocationContext) InvocationID() string
func (*InvocationContext) Memory ¶
func (c *InvocationContext) Memory() agent.Memory
func (*InvocationContext) RunConfig ¶
func (c *InvocationContext) RunConfig() *agent.RunConfig
func (*InvocationContext) Session ¶
func (c *InvocationContext) Session() session.Session
func (*InvocationContext) UserContent ¶
func (c *InvocationContext) UserContent() *genai.Content
type InvocationContextParams ¶
type ReadonlyContext ¶
type ReadonlyContext struct {
context.Context
InvocationContext agent.InvocationContext
}
func (*ReadonlyContext) AgentName ¶
func (c *ReadonlyContext) AgentName() string
func (*ReadonlyContext) AppName ¶
func (c *ReadonlyContext) AppName() string
AppName implements agent.ReadonlyContext.
func (*ReadonlyContext) Branch ¶
func (c *ReadonlyContext) Branch() string
Branch implements agent.ReadonlyContext.
func (*ReadonlyContext) InvocationID ¶
func (c *ReadonlyContext) InvocationID() string
func (*ReadonlyContext) ReadonlyState ¶
func (c *ReadonlyContext) ReadonlyState() session.ReadonlyState
func (*ReadonlyContext) SessionID ¶
func (c *ReadonlyContext) SessionID() string
SessionID implements agent.ReadonlyContext.
func (*ReadonlyContext) UserContent ¶
func (c *ReadonlyContext) UserContent() *genai.Content
func (*ReadonlyContext) UserID ¶
func (c *ReadonlyContext) UserID() string
UserID implements agent.ReadonlyContext.
Click to show internal directories.
Click to hide internal directories.