Closed davidkpiano closed 4 months ago
Correlation IDs are now provided as part of the result from agent.generateText(…) and agent.streamText(…):
agent.generateText(…)
agent.streamText(…)
const result = await agent.generateText({ prompt: 'Write me a song', correlationId: 'my-correlation-id', // ... }); result.correlationId; // 'my-correlation-id'
These correlation IDs can be passed to feedback:
// ... agent.addFeedback({ reward: -1, correlationId: result.correlationId, });
Changes to agent feedback (the AgentFeedback interface):
AgentFeedback
goal
observationId
correlationId
reward
attributes
Correlation IDs are now provided as part of the result from
agent.generateText(…)
andagent.streamText(…)
:These correlation IDs can be passed to feedback:
Changes to agent feedback (the
AgentFeedback
interface):goal
is now optionalobservationId
is now optionalcorrelationId
has been added (optional)reward
has been added (optional)attributes
are now optional