Documentation
¶
Index ¶
- func EvaluateConversation(ctx context.Context, eval *executor.ConversationEvaluator, ...) (*mcp.CallToolResult, models.ConversationEvaluationResult, error)
- func GetConversation(ctx context.Context, repo storage.Repository, req *mcp.CallToolRequest, ...) (*mcp.CallToolResult, *storage.ConversationRecord, error)
- func NewEvaluateConversationHandler(eval *executor.ConversationEvaluator) ...
- func NewGetConversationHandler(repo storage.Repository) ...
- type ConversationInput
- type EvaluateConversationInput
- type TurnInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluateConversation ¶
func EvaluateConversation( ctx context.Context, eval *executor.ConversationEvaluator, req *mcp.CallToolRequest, input EvaluateConversationInput, ) (*mcp.CallToolResult, models.ConversationEvaluationResult, error)
EvaluateConversation runs the conversation evaluation pipeline and returns the result.
func GetConversation ¶
func GetConversation( ctx context.Context, repo storage.Repository, req *mcp.CallToolRequest, input ConversationInput, ) (*mcp.CallToolResult, *storage.ConversationRecord, error)
GetConversation retrieves the conversation evaluation record by ID.
func NewEvaluateConversationHandler ¶
func NewEvaluateConversationHandler(eval *executor.ConversationEvaluator) func(context.Context, *mcp.CallToolRequest, EvaluateConversationInput) (*mcp.CallToolResult, models.ConversationEvaluationResult, error)
NewEvaluateConversationHandler returns a tool handler for conversation evaluation.
func NewGetConversationHandler ¶
func NewGetConversationHandler(repo storage.Repository) func(context.Context, *mcp.CallToolRequest, ConversationInput) (*mcp.CallToolResult, *storage.ConversationRecord, error)
NewGetConversationHandler returns a tool handler for retrieving a conversation.
Types ¶
type ConversationInput ¶
type ConversationInput struct {
ConversationID string `json:"conversation_id" jsonschema:"conversation identifier to retrieve"`
}
ConversationInput is the MCP tool input schema for retrieving a conversation.
type EvaluateConversationInput ¶
type EvaluateConversationInput struct {
ConversationID string `json:"conversation_id" jsonschema:"required,unique conversation identifier"`
AgentName string `json:"agent_name,omitempty" jsonschema:"optional name of the agent being evaluated"`
AgentVersion string `json:"agent_version,omitempty" jsonschema:"optional version of the agent being evaluated"`
Turns []TurnInput `json:"turns" jsonschema:"required,all turns in the conversation"`
}
EvaluateConversationInput is the MCP tool input schema for conversation evaluation.