Skip to content

Fix routing & blocking telemetry#49

Merged
adi-wan-askui merged 5 commits intomainfrom
fix/optional-telemetry
May 14, 2025
Merged

Fix routing & blocking telemetry#49
adi-wan-askui merged 5 commits intomainfrom
fix/optional-telemetry

Conversation

@adi-wan-askui
Copy link
Contributor

@adi-wan-askui adi-wan-askui commented May 14, 2025

  • ci(checks): run formatting before typechecking & use appropriate output formats
  • fix(models): fix routing
    • raise InvalidModelError instead of missing credentials if
      model is not supported
    • raise ValidationError (missing credentials) if user
      specified model but credentials are missing instead of
      routing to different model using with credentials configured or
      raising invalid model error
    • raise ValidationError (missing credentials) if using default model
      but credentials are missing instead of raising invalid model error
    • intro custom InvalidModelError for unsupported models
    • expose underlying models of ModelRouter through constructor so
      consumers can override them (e.g. for testing)
    • make model clients, e.g., ClaudeHandler, AskUiInferenceApi, etc.
      more configurable moving their settings into BaseSettings subclass
      and exposing them through constructor
  • fix(telemetry): unreachable segment (telemetry processor) url blocks test termination
    • track VisionAgent.locate()
    • fix url configuration for segment (url from settings not used)
    • fix test termination by using shutdown instead of flush,
      adding timeout and max retries
    • fix telemetry disabling in tests
    • allow resetting telemetry processors
    • add debugger config for tests

…ut formats

- run formatting before typechecking because formatting can, e.g.,
  change where the `type: ignore` comments are placed
- raise `InvalidModelError` instead of missing credentials if
  model is not supported
- raise `ValidationError` (missing credentials) if user
  specified model but credentials are missing instead of
  routing to different model using with credentials configured or
  raising invalid model error
- raise `ValidationError` (missing credentials) if using default model
  but credentials are missing instead of raising invalid model error
- intro custom `InvalidModelError` for unsupported models
- expose underlying models of `ModelRouter` through constructor so
  consumers can override them (e.g. for testing)
- make model clients, e.g., `ClaudeHandler`, `AskUiInferenceApi`, etc.
  more configurable moving their settings into `BaseSettings` subclass
  and exposing them through constructor
- track `VisionAgent.locate()`
- fix url configuration for segment (url from settings not used)
- fix test termination by using `shutdown` instead of `flush`,
  adding timeout and max retries
- fix telemetry disabling in tests
- allow resetting telemetry processors
- add debugger config for tests
@adi-wan-askui adi-wan-askui requested a review from onur-askui May 14, 2025 21:10
@adi-wan-askui adi-wan-askui changed the title fix/optional telemetry Fix routing & blocking telemetry May 14, 2025
adi-wan-askui and others added 2 commits May 14, 2025 23:27
also:
- add reporting for keyboard()
feat(agent): add repeat parameter to VisionAgent.keyboard()
@adi-wan-askui adi-wan-askui merged commit de9e20d into main May 14, 2025
1 check failed
@adi-wan-askui adi-wan-askui deleted the fix/optional-telemetry branch May 14, 2025 21:30
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