trinity.common.workflows.agentscope.react.templates module#
- class trinity.common.workflows.agentscope.react.templates.GSM8KResponseStructure(*, result: str)[source]#
Bases:
BaseModel
- result: str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class trinity.common.workflows.agentscope.react.templates.GSM8KRewardFn(**kwargs)[source]#
Bases:
MathBoxedRewardFn
- class trinity.common.workflows.agentscope.react.templates.Template(system_prompt: str, response_structure: Type[BaseModel], reward_fn_cls: Type[RewardFn])[source]#
Bases:
object
A template for different task types, including system prompt and response structure.
- system_prompt: str#
- response_structure: Type[BaseModel]#