Commit Graph

7 Commits

  • Python: [BREAKING]: Introducing Options as TypedDict and Generic (#3140)
    * WIP typeddict for options
    
    * updated all clients and ChatAgents
    
    * updated everything
    
    * added ADR
    
    * fix mypy
    
    * proper typevar imports
    
    * fixed import
    
    * fixed other imports
    
    * slight update in the sample
    
    * updated from feedback
    
    * fixes
    
    * fixed missing covariants and test fixes
    
    * fixed typing
    
    * updated anthropic thinking config
    
    * ruff fixes
    
    * fixed int tests
    
    * fix tests and mypy
    
    * updated integration tests
    
    * updated docstring and test fix
    
    * improved options handling in obser
    
    * mypy fix
    
    * updated a host of integration tests
    
    * fix tests
    
    * bedrock fix
  • fix(anthropic): fix duplicate ToolCallStartEvent in streaming tool calls (#3051)
    When processing `input_json_delta` events, the Anthropic client was
    passing the tool name from the previous `tool_use` event. This caused
    ag-ui's `_handle_function_call_content` to emit a `ToolCallStartEvent`
    for every streaming chunk (since it triggers on `if content.name:`).
    
    This fix changes the behavior to pass an empty string for `name` in
    `input_json_delta` events, matching OpenAI's behavior where streaming
    argument chunks have `name=""`. The initial `tool_use` event still
    provides the tool name, so only one `ToolCallStartEvent` is emitted.
    
    Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com>
  • Python: cleanup and refactoring of chat clients (#2937)
    * refactoring and unifying naming schemes of internal methods of chat clients
    
    * set tool_choice to auto
    
    * fix for mypy
    
    * added note on naming and fix #2951
    
    * fix responses
    
    * fixes in azure ai agents client
  • Python: fix anthropic code interpreter tool repr (#2244)
    * fix anthropic code interpreter tool repr
    
    * fixes
    
    * added skills and sample
    
    * test fix
    
    * add new sample to readme
    
    * fixes tests
  • Python: pre-commit improvements (#2222)
    * pre-commit improvements
    
    * updated lock
    
    * fix for globbing
    
    * reuse logic for mypy
    
    * updated ci-mypy
  • Python: fixed image handling in anthropic and added convenience method on datacontent (#2083)
    * fixed image handling in anthropic and added convenience method on datacontent
    
    * remove wheel path
    
    * updated docstrings
    
    * fixed image handling in anthropic and added convenience method on datacontent
    
    * remove wheel path
    
    * updated lock
  • Python: Introducing the Anthropic Client (#1819)
    * initial version of anthropic connector
    
    * updated implementation and added tests
    
    * fix type and readme
    
    * mypy fix and int tests enabled
    
    * add integration test setup
    
    * updated based on comments
    
    * improved function result handling
    
    * added extra unordered test
    
    * updated from review
    
    * fix tool choice handling
    
    * same fix for chat client