Package com.google.genkit.ai.agent
Interface ClientTransform<S>
- Type Parameters:
S- the type of custom state
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
ClientTransform allows a client-managed agent to transform session state before returning it to
the caller.
-
Method Summary
Modifier and TypeMethodDescriptiontransformState(SessionState<S> state) Transforms the given session state before it is returned to the caller.
-
Method Details
-
transformState
Transforms the given session state before it is returned to the caller.- Parameters:
state- the current session state- Returns:
- the transformed session state
-