anthropics / anthropics/claude-agent-sdk-demos
agent-sdk use skills fail, but I can directly use the skill to return the data.
- Lingua principale
- TypeScript
- Stelle
- 2.7k
- Fork
- 426
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I used this script to call the skill and found that it couldn't retrieve the data, but I can directly use the skill to return the data. They both use the same model, what's the difference
`import asyncio
import os
from claude_agent_sdk import query, ClaudeAgentOptions
from dotenv import load_dotenv
load_dotenv()
async def main():
options = ClaudeAgentOptions(
cwd=os.path.dirname(os.path.abspath(__file__)),
setting_sources=["user", "project"],
allowed_tools=["Skill", "Read", "Write", "Bash", "WebSearch", "WebFetch"]
)
async for message in query(
prompt="The current time March 26, 2026. Use regional industry searcher skills to help me retrieve the bidding information in the industrial Internet in the last 30 days. Please format and output the markdown file",
options=options
):
print(message)
asyncio.run(main())
`
this is my skill
[SKILL.md](https://github.com/user-attachments/files/26267116/SKILL.md)
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.