Documentation
¶
Index ¶
- func AssertBehavioralTranscript(doc EvalDoc, transcript *sdk.ConversationStateResponse) error
- func CheckEvalCatalog(evalRoot, promptRoot, templateRoot string, agentIndex map[string]AgentDoc) []string
- func CheckEvidenceContractProfiles(promptRoot string, requiredProfiles []string) []string
- func CheckPublicAgentsCovered(evalRoot string, agentIndex map[string]AgentDoc) []string
- func CheckStarterTaskCoverage(evalRoot string, agentIndex map[string]AgentDoc) []string
- func CollectToolSteps(turn *sdkapi.TurnState) []*sdkapi.ToolStepState
- func DecodePayloadObject(raw json.RawMessage) map[string]interface{}
- func DecodePayloadText(raw json.RawMessage) string
- func DefaultContractTests() []string
- func DefaultRequiredEvidenceContractProfiles() []string
- func ExecuteBehavioralQuery(ctx context.Context, agentlyBin, api, token, oob, agentID string, doc EvalDoc, ...) (string, string, error)
- func FirstProviderRequestPreview(turn *sdkapi.TurnState) string
- func LoadAgents(agentRoot string) (map[string]AgentDoc, error)
- func LoadEvalDocs(evalRoot string) (map[string]EvalDoc, []string)
- func LoadYAML(path string, dest any) error
- func NewBehavioralHTTPClient(ctx context.Context, api, token, oob string) (sdk.Client, error)
- func ParseConversationID(output string) string
- func Run(opts Options) error
- func RunBehavioralEval(ctx context.Context, client sdk.Client, agentlyBin, api, token, oob string, ...) error
- func RunBehavioralEvals(workspace, evalRoot, selected string, timeout time.Duration, ...) []string
- func RunContractTests(workspace string, contractTests []string) []string
- func SelectBehavioralEvals(evals map[string]EvalDoc, selected string) []string
- func StringValue(value interface{}) string
- func TimeoutSeconds(ctx context.Context) int
- func Truncate(value string, size int) string
- type AgentDoc
- type EvalDoc
- type EvalToolExpectation
- type Options
- type PromptDoc
- type StarterTaskDoc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertBehavioralTranscript ¶
func AssertBehavioralTranscript(doc EvalDoc, transcript *sdk.ConversationStateResponse) error
func CheckEvalCatalog ¶
func CollectToolSteps ¶
func CollectToolSteps(turn *sdkapi.TurnState) []*sdkapi.ToolStepState
func DecodePayloadObject ¶
func DecodePayloadObject(raw json.RawMessage) map[string]interface{}
func DecodePayloadText ¶
func DecodePayloadText(raw json.RawMessage) string
func DefaultContractTests ¶
func DefaultContractTests() []string
func DefaultRequiredEvidenceContractProfiles ¶
func DefaultRequiredEvidenceContractProfiles() []string
func ExecuteBehavioralQuery ¶
func NewBehavioralHTTPClient ¶
func ParseConversationID ¶
func RunBehavioralEval ¶
func RunBehavioralEvals ¶
func RunContractTests ¶
func SelectBehavioralEvals ¶
func StringValue ¶
func StringValue(value interface{}) string
func TimeoutSeconds ¶
Types ¶
type AgentDoc ¶
type AgentDoc struct {
ID string `yaml:"id"`
StarterTasks []StarterTaskDoc `yaml:"starterTasks"`
Profile struct {
Publish bool `yaml:"publish"`
} `yaml:"profile"`
}
type EvalDoc ¶
type EvalDoc struct {
ID string `yaml:"id"`
Title string `yaml:"title"`
UserPrompt string `yaml:"user_prompt"`
EntryAgent string `yaml:"entry_agent"`
ExpectedRouting struct {
Agent string `yaml:"agent"`
Profile string `yaml:"profile"`
FanOut []string `yaml:"fan_out"`
} `yaml:"expected_routing"`
ExpectedPreDelegationTools []EvalToolExpectation `yaml:"expected_pre_delegation_tools"`
ExpectedOutput struct {
Template string `yaml:"template"`
} `yaml:"expected_output"`
}
type EvalToolExpectation ¶
type EvalToolExpectation struct {
Name string `yaml:"name"`
}
type StarterTaskDoc ¶
Click to show internal directories.
Click to hide internal directories.