Skip to content

2.3.0

Latest

Choose a tag to compare

@tomchop tomchop released this 04 Sep 18:44
· 2 commits to main since this release

Agent persona methods

Adds client coverage for Yeti's /api/v2/agentpersonas endpoints (#24):

  • search_agent_personas(name=None, enabled=None, count=50, page=0)
  • get_agent_persona(yeti_id)
  • new_agent_persona(persona)
  • patch_agent_persona(yeti_id, persona)

These let callers stop building persona URLs from _url_root, which is private and not part of the API this package promises. yeti-agents is the first consumer.

Two behaviours worth knowing:

  • Search requires no arguments, unlike search_entities — listing every persona is the common case.
  • enabled is three-valued: None means either, and False is sent rather than dropped, so searching for disabled personas works.

No delete_agent_persona: do_request dispatches GET, POST and PATCH only.

Requires a Yeti server with the personas API (yeti-platform/yeti#1365).