Skip to content
Discussion options

You must be logged in to vote

anything marked with InjectedState will be ignored by the LLM, so it's fine to put the state into your pydantic model arg schema

e.g.

class MyModel(BaseModel):
    ...
    state: Annotated[MyStateModel, InjectedState],

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@NathanAP
Comment options

@vbarda
Comment options

Answer selected by NathanAP
@NathanAP
Comment options

@NathanAP
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants