agentscope-ai / agentscope-ai/agentscope-runtime

[Feature] Support path parameters in AgentApp endpoint_path

Open
#313 2 comments 0 reactions 1 assignee Claimed by @zzhangpurdue View on GitHub
enhancement
Dominant language
Python
Stars
863
Forks
168
PR merge metrics
No merged PRs in 30d

Description

## Problem Description
Currently, when using the `endpoint_path` specified in `AgentApp`, it does not support variables/placeholders. Could this feature be supported? For example:

```python
endpoint_path = "/agent/{agent_id}/chat"
```

Then, in the `query_func` method, we should be able to retrieve this agent_id parameter.

## Proposed Solution
[Clear description of what you want to happen]

## Affected Component(s)
- [x] Engine
- [ ] Sandbox
- [ ] Common
- [ ] Tools
- [ ] Documentation
- [ ] Other: ___________

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.