PR #23 ยท pramaan-io/pramaan-agents ยท merged 2026-06-03
sequenceDiagram autonumber participant agent as MatterChatAgent v1 participant harness as Strands harness participant db as Agents DB agent->>harness: load prompt v1 agent->>harness: register 7 tool stubs harness->>harness: tools=[] replaced harness-->>db: sync prompt + schemas
| Method | in โ out | what it does |
|---|---|---|
search_documents | (matter_id, query, limit) โ dict[str, Any] | finds documents inside a given matter |
fetch_quote | (matter_id, document_id, quote_id) โ dict[str, Any] | pulls the exact citation text for one quote |
get_contradictions | (matter_id, contradiction_id) โ dict[str, Any] | surfaces claim-versus-claim conflicts in the matter |
sync_matter_chat_agent_v1 | (engine, firm_id, model_id, prompt_path) โ None | deploys the v1 prompt and tool schemas into agents tables |
Defines the seven MatterChatAgent v1 tool stubs for search, open, quote, events, claims, contradictions, entities that raise until PR ten-ten lands.
| new method | signature |
|---|---|
tool | (func) โ F |
_object_schema | (properties, required) โ JSONSchema |
_array_of | (item_schema) โ JSONSchema |
_not_implemented | (tool_name) โ NoReturn |
search_documents | (matter_id, query, limit) โ dict[str, Any] |
open_document | (matter_id, document_id) โ dict[str, Any] |
fetch_quote | (matter_id, document_id, quote_id) โ dict[str, Any] |
get_events | (matter_id, limit) โ dict[str, Any] |
get_claims | (matter_id, claim_id) โ dict[str, Any] |
get_contradictions | (matter_id, contradiction_id) โ dict[str, Any] |
get_entities | (matter_id, entity_type) โ dict[str, Any] |
UUID_SCHEMA : JSONSchemaQUOTE_ID_SCHEMA : JSONSchemaTEXT_SCHEMA : JSONSchemaCITATION_SCHEMA : JSONSchemaDeploy-time sync writing prompt v1 and tool registry schemas into the agents tables.
| new method | signature |
|---|---|
sync_matter_chat_agent_v1 | (engine, firm_id, model_id, prompt_path) โ None |
_json_dump | (value) โ str |
main | (argv) โ int |
Runtime loader that reads the v1 prompt file and renders conversation history for the agent.
| new method | signature |
|---|---|
load_matter_chat_prompt_v1 | (prompt_path) โ str |
_render_history | (history) โ str |
_render_user_turn | (message) โ str |