context

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCallbackContextWithDelta

func NewCallbackContextWithDelta(ctx agent.InvocationContext, stateDelta map[string]any) agent.CallbackContext

Types

type InvocationContext

type InvocationContext struct {
	context.Context
	// contains filtered or unexported fields
}

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 InvocationContextParams struct {
	Artifacts agent.Artifacts
	Memory    agent.Memory
	Session   session.Session

	Branch string
	Agent  agent.Agent

	UserContent   *genai.Content
	RunConfig     *agent.RunConfig
	EndInvocation bool
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL