feat: include schema

This commit is contained in:
Shivam Mishra
2025-08-04 16:58:23 +05:30
parent 311093f0fb
commit 96e18d74c5
+6 -1
View File
@@ -7,7 +7,8 @@ module Concerns::Agentable
instructions: ->(context) { agent_instructions(context) },
tools: agent_tools,
model: agent_model,
temperature: temperature || 0.7
temperature: temperature || 0.7,
response_schema: agent_response_schema
)
end
@@ -45,6 +46,10 @@ module Concerns::Agentable
'gpt-4.1-mini'
end
def agent_response_schema
Captain::ResponseSchema
end
def prompt_context
raise NotImplementedError, "#{self.class} must implement prompt_context"
end