|
44 | 44 |
|
45 | 45 | # This will be the authenticated extended agent card |
46 | 46 | # It includes the additional 'extended_skill' |
47 | | - specific_extended_agent_card = AgentCard( |
48 | | - name='Hello World Agent - Extended Edition', # Different name for clarity |
49 | | - description='The full-featured hello world agent for authenticated users.', |
50 | | - url='http://localhost:9999/', |
51 | | - version='1.0.1', # Could even be a different version |
52 | | - defaultInputModes=['text'], |
53 | | - defaultOutputModes=['text'], |
54 | | - capabilities=AgentCapabilities(streaming=True), # Could have different capabilities |
55 | | - skills=[skill, extended_skill], # Both skills for the extended card |
56 | | - supportsAuthenticatedExtendedCard=True, |
| 47 | + specific_extended_agent_card = public_agent_card.model_copy( |
| 48 | + update={ |
| 49 | + 'name': 'Hello World Agent - Extended Edition', # Different name for clarity |
| 50 | + 'description': 'The full-featured hello world agent for authenticated users.', |
| 51 | + 'version': '1.0.1', # Could even be a different version |
| 52 | + # Capabilities and other fields like url, defaultInputModes, defaultOutputModes, |
| 53 | + # supportsAuthenticatedExtendedCard are inherited from public_agent_card unless specified here. |
| 54 | + 'skills': [skill, extended_skill], # Both skills for the extended card |
| 55 | + } |
57 | 56 | ) |
58 | 57 |
|
59 | 58 | request_handler = DefaultRequestHandler( |
|
0 commit comments