Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: return information on attached agents when getting list of sources from API #1172

Merged
merged 3 commits into from
Mar 21, 2024

Conversation

cpacker
Copy link
Owner

@cpacker cpacker commented Mar 21, 2024

GET sources now returns extra metadata:

{
  "attached_agents": [
    {"id": "XXX", "name": "YYY"},
    {"id": "XXX", "name": "YYY"},
  ]
}
,
		{
			"name": "custom-source3",
			"description": null,
			"user_id": "00000000-0000-0000-0000-000000000000",
			"created_at": "2024-03-18T16:33:56.517006",
			"id": "374a1aea-543f-4103-82e4-39ab24812209",
			"embedding_config": {
				"embedding_endpoint_type": "openai",
				"embedding_endpoint": "https://api.openai.com/v1",
				"embedding_model": "text-embedding-ada-002",
				"embedding_dim": 1536,
				"embedding_chunk_size": 300
			},
			"metadata_": {
				"num_documents": 0,
				"num_passages": 0,
				"attached_agents": []
			}
		}
	]

@cpacker cpacker added the API Related to MemGPT API label Mar 21, 2024
@cpacker cpacker merged commit 97b7834 into main Mar 21, 2024
6 checks passed
@cpacker cpacker deleted the return-more-data-in-get-sources branch March 21, 2024 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Related to MemGPT API
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants