Skip to content

feat(agents): optional IDs from context, get_conversation_context tool#11

Open
Baba-2001 wants to merge 1 commit intomainfrom
context-entities
Open

feat(agents): optional IDs from context, get_conversation_context tool#11
Baba-2001 wants to merge 1 commit intomainfrom
context-entities

Conversation

@Baba-2001
Copy link
Contributor

  • Add get_conversation_context tool to return current context (contacts, companies, deals) so agent can call the right detail/query tools when there is a mix
  • Make contactId/companyId optional in get_contact_details, get_company_details, get_contact_owner; resolve from contextEntities when omitted
  • Fix get_contact_details to accept (input, config) and use input.contactId when provided
  • Add context resolution to get_contact_owner (optional contactId, use single contact from context)
  • Update orchestrator prompt: IDs always optional, always call tools when user asks for details, always respond after tool; mention get_conversation_context for mixed context
  • Backend chat controller: add x-vercel-ai-ui-message-stream header for streaming (unchanged from prior session)

Made-with: Cursor

- Add get_conversation_context tool to return current context (contacts, companies, deals) so agent can call the right detail/query tools when there is a mix
- Make contactId/companyId optional in get_contact_details, get_company_details, get_contact_owner; resolve from contextEntities when omitted
- Fix get_contact_details to accept (input, config) and use input.contactId when provided
- Add context resolution to get_contact_owner (optional contactId, use single contact from context)
- Update orchestrator prompt: IDs always optional, always call tools when user asks for details, always respond after tool; mention get_conversation_context for mixed context
- Backend chat controller: add x-vercel-ai-ui-message-stream header for streaming (unchanged from prior session)

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant