Skip to content

Support AgentFacts in registration (#21)#25

Open
ojuschugh1 wants to merge 1 commit into
projnanda:mainfrom
ojuschugh1:feat/agentfacts-registration
Open

Support AgentFacts in registration (#21)#25
ojuschugh1 wants to merge 1 commit into
projnanda:mainfrom
ojuschugh1:feat/agentfacts-registration

Conversation

@ojuschugh1

Copy link
Copy Markdown

Closes #21.

Adds an optional agent_facts arg to register_with_registry and the NANDA constructor so agents can publish AgentFacts metadata (skills, capabilities, evaluations) at registration time. Schema lives at projnanda/agentfacts.

Also added a set_agent_facts() setter for late binding, and an AGENT_FACTS_PATH env var that loads the JSON file when running agent_bridge.py directly.

Backward compatible. If agent_facts is not supplied, the payload is identical to before. Older registries ignore the new field.

Two unit tests in tests/test_register_payload.py covering the omit and include cases. Both pass. Also verified the AGENT_FACTS_PATH loader end-to-end against a sample JSON.

Happy to follow up with #16 (provider abstraction) after this lands. The credential cleanup in #15 partially overlaps and would be a useful prerequisite.

Add an optional agent_facts arg to register_with_registry and
the NANDA constructor. Falls back to AGENT_FACTS_PATH (JSON
file) when running agent_bridge directly. No-op if unset, so
existing setups keep working.

Closes projnanda#21
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.

Registration doesn't include AgentFacts - gap between agentfacts-format schema and adapter's register_with_registry()

1 participant