mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
renamed all (#3207)
This commit is contained in:
committed by
GitHub
Unverified
parent
1ae0b09e42
commit
d8cf8361bd
@@ -18,7 +18,7 @@ import string
|
||||
from typing import TypedDict, cast
|
||||
|
||||
import sympy # type: ignore[import-untyped,reportMissingImports]
|
||||
from agent_framework import AgentRunResponse, ChatAgent, MCPStdioTool
|
||||
from agent_framework import AgentResponse, ChatAgent, MCPStdioTool
|
||||
from agent_framework.lab.lightning import AgentFrameworkTracer
|
||||
from agent_framework.openai import OpenAIChatClient
|
||||
from agentlightning import LLM, Dataset, Trainer, rollout
|
||||
@@ -102,7 +102,7 @@ def _is_result_correct(prediction: str, ground_truth: str) -> float:
|
||||
return float(_scalar_are_results_same(prediction, ground_truth, 1e-2))
|
||||
|
||||
|
||||
def evaluate(result: AgentRunResponse, ground_truth: str) -> float:
|
||||
def evaluate(result: AgentResponse, ground_truth: str) -> float:
|
||||
"""Main evaluation function that extracts the agent's answer and compares with ground truth.
|
||||
|
||||
This function:
|
||||
|
||||
Reference in New Issue
Block a user