This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@statelyai/agent@1.1.0
Minor Changes
#393cce30f Thanks @davidkpiano! - Added four new methods for easily retrieving agent messages, observations, feedback, and plans:
agent.getMessages()
agent.getObservations()
agent.getFeedback()
agent.getPlans()
The agent.select(…) method is deprecated in favor of these methods.
#408b7c374 Thanks @davidkpiano! - Correlation IDs are now provided as part of the result from agent.generateText(…) and agent.streamText(…):
const result = await agent.generateText({
prompt: "Write me a song",
correlationId: "my-correlation-id",
// ...
});
result.correlationId; // 'my-correlation-id'
#408b7c374 Thanks @davidkpiano! - Changes to agent feedback (the AgentFeedback interface):
goal is now optional
observationId is now optional
correlationId has been added (optional)
reward has been added (optional)
attributes are now optional
#3821fb17c Thanks @davidkpiano! - You can now add context Zod schema to your agent. For now, this is meant to be passed directly to the state machine, but in the future, the schema can be shared with the LLM agent to better understand the state machine and its context for decision making.
Breaking: The context and events types are now in agent.types instead of \~~agent.eventTypes.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@statelyai/agent@1.1.0
Minor Changes
#39
3cce30f
Thanks @davidkpiano! - Added four new methods for easily retrieving agent messages, observations, feedback, and plans:agent.getMessages()
agent.getObservations()
agent.getFeedback()
agent.getPlans()
The
agent.select(…)
method is deprecated in favor of these methods.#40
8b7c374
Thanks @davidkpiano! - Correlation IDs are now provided as part of the result fromagent.generateText(…)
andagent.streamText(…)
:These correlation IDs can be passed to feedback:
#40
8b7c374
Thanks @davidkpiano! - Changes to agent feedback (theAgentFeedback
interface):goal
is now optionalobservationId
is now optionalcorrelationId
has been added (optional)reward
has been added (optional)attributes
are now optional#38
21fb17c
Thanks @davidkpiano! - You can now addcontext
Zod schema to your agent. For now, this is meant to be passed directly to the state machine, but in the future, the schema can be shared with the LLM agent to better understand the state machine and its context for decision making.Breaking: The
context
andevents
types are now inagent.types
instead of \~~agent.eventTypes
.Patch Changes
5f863bb
Thanks @davidkpiano! - Use nanoid#37
dafa815
Thanks @davidkpiano! - Messages are now properly included inagent.decide(…)
, when specified.