Send build info with registration metadata #103
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://github.com/scaleapi/agentex-agents/pull/241 is adding a build-info.json file to the agent's project directory which will have build info like the commit hash and the link to the repository and directory path of the agent's source code.
I'm using
inspectto get at the agent's project directory from the SDK, and since they all call FastACP create from acp.py this seemed like the most obvious place to check for the file existence and figure out the build-info path to set it as the environment variable.Agent registration will then read the build-info file if the path is set, and send along its contents as registration metadata to the server which will store it into a JSONB column.