Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultAgent ¶
func RunSession ¶
func RunSession(ctx context.Context, req RunSessionReq, deps RunSessionDeps)
Types ¶
type Agent ¶
type Agent interface {
Propose(context.Context, *ProposeOpts) (*schema.StrategyOneOf, error)
RecordIteration(*schema.AgentIteration)
}
type ProposeOpts ¶
type RunSessionDeps ¶
type RunSessionDeps struct {
Client *genai.Client
GCSClient *gcs.Client
IterationStub api.StubT[schema.AgentCreateIterationRequest, schema.AgentCreateIterationResponse]
CompleteStub api.StubT[schema.AgentCompleteRequest, schema.AgentCompleteResponse]
// TODO: Should these be asset stores?
SessionsBucket string
MetadataBucket string
LogsBucket string
}
type RunSessionReq ¶
Click to show internal directories.
Click to hide internal directories.